import request from '@/utils/request'

// 查询手机号永久黑名单列表
export function listPermBlacklist(query) {
  return request({
    url: '/boss/PermBlacklist/list',
    method: 'get',
    params: query
  })
}

// 查询手机号永久黑名单详细
export function getPermBlacklist(id) {
  return request({
    url: '/boss/PermBlacklist/' + id,
    method: 'get'
  })
}

// 新增手机号永久黑名单
export function addPermBlacklist(data) {
  return request({
    url: '/boss/PermBlacklist',
    method: 'post',
    data: data
  })
}

// 修改手机号永久黑名单
export function updatePermBlacklist(data) {
  return request({
    url: '/boss/PermBlacklist',
    method: 'put',
    data: data
  })
}

// 删除手机号永久黑名单
export function delPermBlacklist(id) {
  return request({
    url: '/boss/PermBlacklist/' + id,
    method: 'delete'
  })
}
